package vip.xiaonuo.modular.repair.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import vip.xiaonuo.core.pojo.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.*;
import cn.afterturn.easypoi.excel.annotation.Excel;


/**
 * 报修信息管理
 *
 * @author 张哲
 * @date 2023-03-27 20:57:47
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("bus_repair")
public class Repair extends BaseEntity {

    /**
     * 主键id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 报修类型
     */
    private String comId;

    /**
     * 报修时间
     */
    @Excel(name = "报修时间", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd", width = 20)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date comDate;

    /**
     * 处理时间
     */
    @Excel(name = "处理时间", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd", width = 20)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date handleDate;

    /**
     * 报修人
     */
    private String ownerId;

    /**
     * 处理状态
     */
    private String status;

    /**
     * 处理人
     */
    private String clr;

    /**
     * 保修内容
     */
    private String remarks;

    private Integer count;

}
